export function formatDate(second) {
    const date = new Date(second)
    const Y = date.getFullYear()
    const M = date.getMonth() + 1
    const D = date.getDate()
    return Y + (M < 10 ? '-0' : '-') + M + (D < 10 ? '-0' : '-') + D
}